const express = require('express');
const app = express();
app.use(express.static('./'));
const path = require('path');
app.get('/', (req, res) => {
    res.sendFile(path.join(__dirname, 'index.html'));
});

const port = 3000;
app.listen(port, () => {
    console.log('访问成功');
});